<?php
/**
 * PHP Framework UI Control class
 * This class represents a generic UI control.
 *
 * @author Andrew <andrew@vitche.com>
 * @author Frozen Rain <frozenrain@mail.ru>
 **/
abstract class Control extends Object {

    public $id;

    protected $controls = array();

    public function addControl($control) {

        $this->controls[] = $control;
    }

    abstract public function bind();

    /**
     * Called by the framework to process requests
     **/
    abstract public function process();

    /**
     * Called by the framework to generate control's textual equivalent
     **/
    abstract public function render();
}
?>